package com.spring.cloud.weather.collection.service;

import com.spring.cloud.weather.collection.vo.City;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * Created by Administrator on 2018/3/18
 */
@FeignClient("weather-city-client")
public interface CityClient {

    @GetMapping("/city")
    List<City> listCity() throws Exception;
}
